﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace Lisphi.Lab.ProfWFChap02
{
    public sealed partial class Workflow2 : SequentialWorkflowActivity
    {
        private string _firstName;
        private string _message;

        public string FirstName
        {
            get { return this._firstName; }
            set { this._firstName = value; }
        }

        public string Message { get { return this._message; } }

        public Workflow2()
        {
            InitializeComponent();
        }

        private void createMessage1_ExecuteCode(object sender, EventArgs e)
        {
            this._message = "Hello, " + this._firstName + "!";
        }

        private void createMessage2_ExecuteCode(object sender, EventArgs e)
        {
            this._message = "Hello, " + this._firstName + "(not Ben)!";
        }
    }

}
